<table id="tabla" class="tabla" width="100%">
    <thead>
        <tr>
            <th>Username</th>
            <th>Nombre</th>
            <th>Apellido</th>
            <th>Tipo</th>
            <th colspan="3"></th>
        </tr>
    </thead>
    <tbody>
        <?php foreach ($User as $usuario): ?>
            <tr>
                <td><?php echo $usuario['User']['username'] ?></td>
                <td><?php echo $usuario['User']['nombre'] ?></td>
                <td><?php echo $usuario['User']['primer_apellido'] ?></td>
                <td><?php echo $usuario['Branch']['nombre'] ?></td>
                <td>
                    <?php echo $this->Ajax->link("Editar", array('class' => "actions", 'controller' => "Users", "action" => "edition", $usuario['User']['id']), array('update' => 'content','class' => 'actions')) ?>
                    <br>
                    <br>
                    <?php echo $this->Ajax->link("Eliminar", array('class' => "actions", 'controller' => "Users", "action" => "delete", $usuario['User']['id']), array('update' => 'content', 'class' => 'actions'), '¿Esta seguro de eliminar el usuario? ') ?>
                    <br>
                    <br>
                    <?php echo $this->Ajax->link("Inscripción", array('class' => "actions", 'controller' => "Users", "action" => "view", $usuario['User']['id']), array('update' => 'content', 'class' => 'actions')) ?>
                </td>
            </tr>
        <?php endforeach; ?>
    </tbody>
</table>
<?php
echo "<br>";
echo $this->Html->link("salir", array('model' => 'User', "action" => "logout"))
?>